import request from '@/utils/request'

export const listInterposes = (search) =>
  request({
    url: '/interposeClassify',
    method: 'get',
    params: {
      offset: search.offset,
      limit: search.limit,
      name: search.name
    }
  })


export const getInterposeTypeById=(id)=>
  request({
    url:'/interposeClassify/'+id,
    method:'get',
  })

export const getSetmealById=(id)=>
  request({
    url:'/interposeClassify/getSetmealById/'+id,
    method:'get',
  })

  export const getCheckListInit=()=>
  request({
    url:'/interposeClassify/getCheckListInit',
    method:'get',
  })

  export const getSelectListInit=()=>
    request({
      url:'/interposeClassify/getSelectListInit',
      method:'get',
    })

  export const updateDiseaseLibrary=(id,diseaseIds,healthName)=>
    request({
      url:'/interposeClassify/'+id+"/"+diseaseIds+"/"+healthName,
      method:'put',
  })



